﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KnowledgeCommunity.Model;
using System.Data;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace KnowledgeCommunity.Web.Models
{
    /// <summary>
    /// Model first To Create Database
    /// </summary>
    public class CKCDB : DbContext
    {
        //Commons
        public DbSet<Accessory> Accessories { get; set; }
        public DbSet<Topic> Topics { get; set; }
        public DbSet<Slider> Sliders { get; set; }
        public DbSet<UserAccount> UserAccounts { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<College> Colleges { get; set; }
        public DbSet<Comment> Comments { get; set; }
        public DbSet<Attention> Attentions { get; set; }

        //Documents
        public DbSet<Catalog> Catalogs { get; set; }
        public DbSet<Document> Documents { get; set; }

        //Konwledges
        public DbSet<Answer> Answers { get; set; }
        public DbSet<Tribune> Tribunes { get; set; }
        public DbSet<TribuneTopic> TribuneTopics { get; set; }
        public DbSet<Knowledge> Knowledges { get; set; }
        public DbSet<Trouble> Troubles { get; set; }

        //Shopping
        public DbSet<Car> Cars { get; set; }
        public DbSet<Commodity> Commodities { get; set; }
        public DbSet<CommodityImage> CommodityImages { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<OrderDetail> OrderDetails { get; set; }

        public DbSet<Shop> Shops { get; set; }

    }
}
